<form action="pages/daoFuncionario.php" method="post">
    <input name="acao" type="hidden" value="1" />
    <table width="1024" valign="top" border="0" align="center">
        <tr>
            <td height="720" valign="top">
                <table width="1024" border="0">
                    <tr>
                        <td width="187" height="43" align="right">Código</td>
                        <td width="827" ><label>
                                <input name="id" type="text" disabled="disabled" id="id" value="" width="50" />
                            </label></td>
                    </tr>
                    <tr>
                        <td width="187" height="43" align="right">Nome</td>
                        <td width="827" ><label>
                                <input name="nome" type="text" id="nome" value="" width="400" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">CPF*</td>
                        <td ><label>
                                <input name="cpf" type="text" id="cpf" maxlength="11" />
                            </label>
                            (somente numeros)</td>
                    </tr>
                    <tr>
                        <td height="43" align="right">RG*</td>
                        <td ><label>
                                <input name="rg" type="text" id="rg" maxlength="15" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Endereço</td>
                        <td ><label>
                                <input type="text" name="endereco" width="500" id="endereco" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Login*</td>
                        <td ><label>
                                <input name="login" type="text" id="login" size="20" maxlength="20" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Senha*</td>
                        <td ><label>
                                <input type="password" name="senha" id="senha" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Fone 1</td>
                        <td ><label>
                                <input name="fone1" type="text" id="fone1" maxlength="11" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Fone 2</td>
                        <td ><label>
                                <input name="fone2" type="text" id="fone2" maxlength="11" />
                            </label></td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Departamento</td>
                        <td >
                            <select multiple="multiple" name="departamento[]" id="departamento" >
                                <?php
                                require_once ('../dao/DepartamentoDaoImp.class.php');
                                $depDao = new DepartamentoDaoImp;
                                $result = $depDao->buscarTodos();

                                foreach ($result as $row) {
                                ?>
                                    <option value='<?php echo $row['idDepartamento']; ?>'>
                                    <?php
                                    echo $row['nome'];
                                    ?>
                                    </option>
                                <?php } ?>

                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td height="43" align="right">Funções</td>
                        <td ><label>
                                <input type="text" name="funcao" />
                            </label></td>
                        <td >
                            <input type="submit" value="Cadastrar" />
                            <input type="reset" value="Resetar"/>
                        </td>
                    </tr>
                </table></td>
        </tr>
    </table>

</form>
